package com.baogu.model.job;

import java.io.Serializable;

public class JobManage implements Serializable {
    private String id;

    private String jobname;

    private String jobclass;

    private String expression;

    private Integer state;

    private String lastexecute;

    private String createdatetime;

    private String updatedatetime;

    private String createuser;

    private String updateuser;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getJobname() {
        return jobname;
    }

    public void setJobname(String jobname) {
        this.jobname = jobname == null ? null : jobname.trim();
    }

    public String getJobclass() {
        return jobclass;
    }

    public void setJobclass(String jobclass) {
        this.jobclass = jobclass == null ? null : jobclass.trim();
    }

    public String getExpression() {
        return expression;
    }

    public void setExpression(String expression) {
        this.expression = expression == null ? null : expression.trim();
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getLastexecute() {
        return lastexecute;
    }

    public void setLastexecute(String lastexecute) {
        this.lastexecute = lastexecute == null ? null : lastexecute.trim();
    }

    public String getCreatedatetime() {
        return createdatetime;
    }

    public void setCreatedatetime(String createdatetime) {
        this.createdatetime = createdatetime == null ? null : createdatetime.trim();
    }

    public String getUpdatedatetime() {
        return updatedatetime;
    }

    public void setUpdatedatetime(String updatedatetime) {
        this.updatedatetime = updatedatetime == null ? null : updatedatetime.trim();
    }

    public String getCreateuser() {
        return createuser;
    }

    public void setCreateuser(String createuser) {
        this.createuser = createuser == null ? null : createuser.trim();
    }

    public String getUpdateuser() {
        return updateuser;
    }

    public void setUpdateuser(String updateuser) {
        this.updateuser = updateuser == null ? null : updateuser.trim();
    }

    @Override
    public String toString() {
        return "JobManage{" +
                "id='" + id + '\'' +
                ", jobname='" + jobname + '\'' +
                ", jobclass='" + jobclass + '\'' +
                ", expression='" + expression + '\'' +
                ", state=" + state +
                ", lastexecute='" + lastexecute + '\'' +
                ", createdatetime='" + createdatetime + '\'' +
                ", updatedatetime='" + updatedatetime + '\'' +
                ", createuser='" + createuser + '\'' +
                ", updateuser='" + updateuser + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object obj) {
        String _id = ((JobManage)obj).getId();
        String _expression = ((JobManage)obj).getExpression();
        if(this.getId().equals(_id) && this.getExpression().equals(_expression)){
            return true;
        }
        else{
            return false;
        }
    }
}